1D Container
Flow-Wing supports 1D containers.
1D Array
Flow-Wing supports 1D arrays.
Example Usage:
var arr: int[10] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for var i = 0 to 9 {
print(arr[i])
}
Output:
1 2 3 4 5 6 7 8 9 10
Example Usage: With Objects
var arr: Person[10] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for var i = 0 to 9 {
print(arr[i].name)
}
Output:
1 2 3 4 5 6 7 8 9 10